@extends("parent")

@section("mainbody")

	<div class="container">
		<h1>列表页</h1>
		<table class="table table-tripped table-bordered">
			<tr>
				<th>序号</th>
				<th>用户名</th>
				<th>年龄</th>
				<th>性别</th>
				<th>编辑</th>
			</tr>

			@foreach($list as $key=>$val)
			<tr>
				<td>{{$val->id}}</td>
				<td>{{$val->username}}</td>
				<td>{{$val->age}}</td>
				<td>男</td>
				<td>
					<a href="" class="btn btn-success">修改</a>
					<a href="" class="btn btn-danger">删除</a>
				</td>
			</tr>
			@endforeach
		
			
		</table>
	</div>

@endsection

